package com.holly.unit.dict.modular.entity;

import com.holly.unit.core.pojo.request.BaseRequest;
import com.holly.unit.scanner.api.annotation.field.ChineseDescription;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * @Description: 表单分类
 * @Author: holly
 * @Date:   2022-02-23
 * @Version: V1.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class HollyFormTypeRequest extends BaseRequest{

	/**备注*/
    @NotNull(message = "remark不能为空", groups = {edit.class})
    @ChineseDescription("备注")
	private java.lang.String remark;
	/**排序*/
    @NotNull(message = "sort不能为空", groups = {edit.class})
    @ChineseDescription("排序")
	private java.lang.Long sort;
	/**分类编号*/
    @NotNull(message = "typeCode不能为空", groups = {edit.class})
    @ChineseDescription("分类编号")
	private java.lang.String typeCode;
	/**分类名称*/
    @NotNull(message = "typeName不能为空", groups = {edit.class})
    @ChineseDescription("分类名称")
	private java.lang.String typeName;
	/**ID*/
	@NotNull(message = "id不能为空", groups = {add.class, edit.class, delete.class})
    @ChineseDescription("ID")
	private java.lang.Long id;


	/**
         * 参数校验分组：增加
         */
        public @interface add {
        }

        /**
         * 参数校验分组：编辑
         */
        public @interface edit {
        }

        /**
         * 参数校验分组：删除
         */
        public @interface delete {
        }

        /**
         * 参数校验分组：详情
         */
        public @interface detail {
        }

        /**
         * 参数校验分组：导出
         */
        public @interface export {
        }
}
